﻿using FluentNHibernate.Mapping;
using Model.Entities;

namespace DAL.Mappings
{
    public class IntervalMap:ClassMap<Interval>
    {
        public IntervalMap()
        {
            Id(x => x.Id);

            Map(x => x.Category).CustomType(typeof(IntervalCategory));
            Map(x => x.Name);
            Map(x => x.LowerBoundary);
            Map(x => x.UpperBoundary);
        }
    }
}
